using GEM.Domain.Entities;
using GEM.Domain.Entities.App;
using Microsoft.EntityFrameworkCore;

namespace GEM.Infrastructure.DB;

public class AppDbContext : DbContext
{
    public AppDbContext(DbContextOptions options) : base(options) { }

    //用户表
    public DbSet<AppUser> AppUser { get; set; }
    //角色表
    public DbSet<AppRole> AppRole { get; set; }
    // 权限表
    public DbSet<AppPermission> AppPermission { get; set; }
    //资源表
    public DbSet<AppResourse> AppResourse { get; set; }
    //部门表
    public DbSet<AppDepartment> AppDepartment { get; set; }
    //文件表
    public DbSet<FileItem> FileItem { get; set; }
}